<?php
/**********************************************************
 *	Repeated Commit Prevention System
 *	Seal Created by 2010-3-28
 **********************************************************/

	$RCPSMatrix = array(
		"write_message",
		"add_review"
	);
	
	$allowNextCommit = 0;
	
	if( in_array($page_base, $RCPSMatrix) )
	{
		if( count($_POST) == 0 )
			edp_setsession( $page_base, '0' );
		else 
		{
			if( !edp_isset_session($page_base) )
			{
				echo "<script>alert('不能重复提交内容!')</script>";
				exit();
			}
		}
	}
	
	
?>